from config import config
from logic.navlistDao import navlistDao
from utils import markdown
from utils.MyUrl import MyUrl
from utils.Seo import Seo
#视图基类
class ViewBaseObject(object):
    def __init__(self):
        navlist = navlistDao().list()
        self.navs=navlist
        self.markdown = markdown.MarkDown().mark
        self.markdownToText = markdown.MarkDown().toText
        self.config = config
        self.desc = Seo.desc
        self.keyword = Seo.keyword
        self.link = MyUrl